package conf;

import component.PageHolder;
import component.WebDriverFactory;
import org.openqa.selenium.WebDriver;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(AnnotationConfigure.class)
public class DefaultConfigure {
    @Bean
    public FactoryBean<WebDriver> webDriverFactory(){
        return new WebDriverFactory(false);
    }


    @Bean
    public PageHolder pageHolder(){
        return new PageHolder();
    }


}
